<%--
  Created by IntelliJ IDEA.
  User: 李烨卿
  Date: 2018/4/30
  Time: 21:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>


<script type="text/javascript"  src="./bootstrap/jquery.min.js"></script>

<script type="text/javascript"  src=" bootstrap/bootstrap/js/bootstrap.min.js"></script>

    <!-- TreeView -->
<link rel="stylesheet"	href="./bootstrap/bootstrap-treeview/dist/bootstrap-treeview.min.css">
<script type="text/javascript"	src="./bootstrap/bootstrap-treeview/dist/bootstrap-treeview.min.js"></script>
<!-- addtabs -->
<link rel="stylesheet"	href="./bootstrap/bootStrap-addTabs/bootstrap.addtabs.css">
<script type="text/javascript"	src="./bootstrap/bootStrap-addTabs/bootstrap.addtabs.js"></script>
<!-- 表格 -->
<link rel="stylesheet"	href="./bootstrap/bootstrap-table/dist/bootstrap-table.css">
<script type="text/javascript"	src="./bootstrap/bootstrap-table/dist/bootstrap-table.js"></script>

</head>
<body>

<form id="ff">
    <div class="form-group">
        <label >银行卡号</label>
        <input type="text" class="form-control" name="bankcardnumber" placeholder="银行卡号">
    </div>

    <div class="form-group">
        <label >银行卡类型</label>
        <input type="text" class="form-control" name="bankcardtype"  placeholder="银行卡类型">
    </div>

    <input type="button" onclick="jiajiajia()" value="添加"/>

</form>

<script>
    
    function  jiajiajia() {

        $.ajax({

            url:"http://localhost:8680/app/balance/addcard",
            type:"POST",
            dataType:"json",
            contentType : "application/json;charset=utf-8",
            data:{"bankcardnumber":$("[name='bankcardnumber']").val(),"bankcardtype":$("[name='bankcardtype']").val()},
            success:function (result) {

                alert(result)
            },
            error:function () {

                alert("成功")
            }

        })
        
    }
    
</script>


</body>
</html>
